import Layout from '@/layout'

const msRoomRouter = {
  path: '/amszs/msroom/',
  component: Layout,
  redirect: '/amszs/msroom/index',
  name: 'MsRoom',
  alwaysShow: true,
  meta: {
    title: '房间管理',
    icon: 'clipboard'
  },
  children: [
    {
      path: 'index',
      component: () => import('@/views/amszs/msroom/index'),
      name: 'OrderIndex',
      meta: { title: '房间管理' }
    },

    //添加房间
    {
      path: 'roomAdd',
      component: () => import('@/views/amszs/msroom/roomAdd.vue'),
      name: 'roomAdd',
      meta: { title: '添加房间' }
    },

    //编辑房间
    {
      path: 'roomEdit',
      component: () => import('@/views/amszs/msroom/roomEdit.vue'),
      name: 'roomEdit',
      meta: { title: '编辑房间' }
    },
    //查看房间
    {
      path: 'roomDetail',
      component: () => import('@/views/amszs/msroom/roomDetail.vue'),
      name: 'roomDetail',
      meta: { title: '房间详情' }
    },
  ]
}

export default msRoomRouter